package com.zhcd.sys.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DoctorDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医生id")
    @TableId(value = "DoctorId", type = IdType.ASSIGN_ID)
    private String doctorid;

    @ApiModelProperty(value = "医生姓名")
    @TableField("DoctorName")
    private String doctorname;

    @ApiModelProperty(value = "科室id")
    @TableField("DepartmentId")
    private String departmentid;

    @ApiModelProperty(value = "科室名称")
    @TableField("DepartmentName")
    private String departmentname;

    @ApiModelProperty(value = "联系电话")
    @TableField("DoctorPhone")
    private String doctorphone;

    @ApiModelProperty(value = "身份证号")
    @TableField("DoctorIDCard")
    private String doctoridcard;

    @ApiModelProperty(value = "年龄")
    @TableField("DoctorAge")
    private Integer doctorage;

    @ApiModelProperty(value = "性别(0女,1男)")
    @TableField("DoctorSex")
    private Integer doctorsex;

    @ApiModelProperty(value = "地址")
    @TableField("Address")
    private String address;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("CreateTime")
    private Date createtime;

    @ApiModelProperty(value = "明细表id")
    @TableId(value = "DetailId", type = IdType.ASSIGN_ID)
    private String detailid;

    @ApiModelProperty(value = "金额")
    @TableField("Money")
    private BigDecimal money;

    @ApiModelProperty(value = "缴费人id")
    @TableField("PeopleId")
    private String peopleid;

    @ApiModelProperty(value = "缴费人")
    @TableField("Name")
    private String name;

    @ApiModelProperty(value = "缴费时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("CreateTime")
    private Date payTime;

    @ApiModelProperty(value = "付款方式")
    @TableField("PayWay")
    private String payway;

    @ApiModelProperty(value = "收款状态(0已支付,1未支付)")
    @TableField("PayStatus")
    private Integer paystatus;
}
